package com.jdd.fintech.morse.plugin.util;

import sun.misc.BASE64Decoder;

/**
 * @Description: base 64 加密工具类
 * @Author: fengcheng
 * @Date: 2021/5/27
*/
public class Base64Utils {

    /**
     * base64加密
     * @param content
     * @return
     */
    public static byte[] encrypt(String content) throws Exception{
        BASE64Decoder decoder = new BASE64Decoder();
        return decoder.decodeBuffer(content);
    }
}
